package dohmh.yelp.dataobjects;

import java.util.ArrayList;

public class Business {
	private String _Address;
	private String _Category;
	private String _City;
	private Integer _id;
	private String _Name;
	private ArrayList<Review> _Reviews;
	private String _State;
	private String _Url;
	private String _YelpId;
	private String _ZipCode;
	
	public Business(){
		_Reviews = new ArrayList<Review>();
	}
	public void addReview(Review r){
		_Reviews.add(r);
	}
	public String getAddress() {
		return _Address;
	}
	public String getCategory() {
		return _Category;
	}
	public String getCity() {
		return _City;
	}
	public Integer getId(){
		return _id;
	}
	public String getName() {
		return _Name;
	}
	public ArrayList<Review> getReviews(){
		return new ArrayList<Review>(_Reviews);
	}
	public String getState() {
		return _State;
	}
	public String getUrl() {
		return _Url;
	}
	public String getYelpId() {
		return _YelpId;
	}
	public String getZipCode() {
		return _ZipCode;
	}
	public void setAddress(String _Address) {
		this._Address = _Address;
	}
	public void setCategory(String _Category) {
		this._Category = _Category;
	}
	public void setCity(String _City) {
		this._City = _City;
	}
	public void setId(Integer i){
		this._id = i;
	}
	public void setName(String _Name) {
		this._Name = _Name;
	}
	public void setState(String _State) {
		this._State = _State;
	}
	public void setUrl(String _Url) {
		this._Url = _Url;
	}
	public void setYelpId(String _YelpId) {
		this._YelpId = _YelpId;
	}
	public void setZipCode(String _ZipCode) {
		this._ZipCode = _ZipCode;
	}
	public String toString(){
		return "ID: " + _id + ", YelpID: " + _YelpId;
	}
}
